﻿using System.Windows;
using XamlDev.ServiceLocatorPattern.Client.Basic;
using XamlDev.ServiceLocatorPattern.Client.Regular;
using XamlDev.ServiceLocatorPattern.ServiceInterface;

namespace XamlDev.ServiceLocatorPattern.Client
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        public App()
        {
            //Basic
            //ServiceLocator.SetService<ILog>(new LogBasic());

            //Regular
            //ServiceLocator.SetService<ILog>("basicLog", new LogBasic());
            //ServiceLocator.SetService<ILog>("regularLog", new LogRegular());

            //Advanced
            ServiceLocator.RegisterServiceFromAppSettings<ILog>("applicationLogger");
        }
    }
}